package org.youdiversity.model.hibernate;

import java.util.Set;

import javax.persistence.Table;

import org.hibernate.annotations.Entity;
import org.youdiversity.model.Subject;
import org.youdiversity.model.User;

@SuppressWarnings("serial")
@Entity
@Table(name = "user")
public class UserHibernate extends BaseEntityHibernate implements User {

	private String name;
	private String lastName;
	private String login;
	private String password;
	private Set<Subject> subjectsToLearn;
	private Set<Subject> subjectsToTeach;

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getLastName() {
		return lastName;
	}

	@Override
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	@Override
	public String getLogin() {
		return login;
	}

	@Override
	public void setLogin(String login) {
		this.login = login;
	}

	@Override
	public String getPassword() {
		return password;
	}

	@Override
	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public Set<Subject> getSubjectsToLearn() {
		return subjectsToLearn;
	}

	@Override
	public void setSubjectsToLearn(Set<Subject> subjectsToLearn) {
		this.subjectsToLearn = subjectsToLearn;
	}

	@Override
	public Set<Subject> getSubjectsToTeach() {
		return subjectsToTeach;
	}

	@Override
	public void setSubjectsToTeach(Set<Subject> subjectsToTeach) {
		this.subjectsToTeach = subjectsToTeach;
	}
}
